#include <iostream>
#include <string>
#include <sw/redis++/redis++.h>
using namespace std;


int main()
{
    sw::redis::Redis redistmp("tcp://127.0.0.1:6379");
    string ret = redistmp.ping();
    cout << ret << endl;
    return 0;
}